package org.appfuse;

import java.util.HashMap;

/**
 * Constant values used throughout the application.
 * 
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 * 
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public class Constants {
	// ~ Static fields/initializers
	// =============================================

	/** The name of the ResourceBundle used in this application */
	public static final String BUNDLE_KEY = "ApplicationResources";

	/** The encryption algorithm key to be used for passwords */
	public static final String ENC_ALGORITHM = "algorithm";

	/** A flag to indicate if passwords should be encrypted */
	public static final String ENCRYPT_PASSWORD = "encryptPassword";

	/** File separator from System properties */
	public static final String FILE_SEP = System.getProperty("file.separator");

	/** User home from System properties */
	public static final String USER_HOME = System.getProperty("user.home")
			+ FILE_SEP;

	/** The name of the configuration hashmap stored in application scope. */
	public static final String CONFIG = "appConfig";

	/**
	 * Session scope attribute that holds the locale set by the user. By setting
	 * this key to the same one that Struts uses, we get synchronization in
	 * Struts w/o having to do extra work or have two session-level variables.
	 */
	public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";

	/**
	 * The request scope attribute under which an editable user form is stored
	 */
	public static final String USER_KEY = "userForm";

	/**
	 * The request scope attribute that holds the user list
	 */
	public static final String USER_LIST = "userList";

	/**
	 * The request scope attribute for indicating a newly-registered user
	 */
	public static final String REGISTERED = "registered";

	/**
	 * The name of the Administrator role, as specified in web.xml
	 */
	public static final String ADMIN_ROLE = "admin";

	/**
	 * The name of the User role, as specified in web.xml
	 */
	public static final String USER_ROLE = "user";

	public static final String SYSADMIN_ROLE = "sysadmin";

	/**
	 * The name of the user's role list, a request-scoped attribute when
	 * adding/editing a user.
	 */
	public static final String USER_ROLES = "userRoles";

	/**
	 * The name of the available roles list, a request-scoped attribute when
	 * adding/editing a user.
	 */
	public static final String AVAILABLE_ROLES = "availableRoles";

	/**
	 * The request scope attribute that holds the person form.
	 */
	public static final String PERSON_KEY = "personForm";

	/**
	 * The request scope attribute that holds the person list
	 */
	public static final String PERSON_LIST = "personList";

	/**
	 * The request scope attribute that holds the menu form.
	 */
	public static final String CRITERIA_KEY = "criteriaForm";

	/**
	 * The request scope attribute that holds the criteria list
	 */
	public static final String CRITERIA_LIST = "criteriaList";

	/**
	 * The request scope attribute that holds the menu form.
	 */
	public static final String MENU_KEY = "menuForm";

	/**
	 * The request scope attribute that holds the menu list
	 */
	public static final String MENU_LIST = "menuList";

	public final static String DEFAULT_LOCATION = "subCriteriaList.html?method=getSubCriteria";

	public final static String DEFAULT_TOP_MENU_NAME = "DatabaseMenu";

	public final static String MENU_REPOSITORY_KEY = "Criteria_Menu_Repository";

	public final static String CRITERIA_NAME_PREFIX = "C";

	// roles
	public final static String SYSADMIN = "sysadmin";

	public final static String ADMIN = "admin";

	public static final String CURRENT_USER = "currentUser";

	/*
	 * GB
	 */

	public final static String GB2261 = "GB2261";

	public static HashMap GB2261_MAP = null;

	public final static String GB2260 = "GB2260";

	public static HashMap GB2260_MAP = null;

	public final static String GB3304 = "GB3304";

	public static HashMap GB3304_MAP = null;

	public final static String G099 = "G099";

	public static HashMap G099_MAP = null;

	public final static String GB12403 = "GB12403";

	public static HashMap GB12403_MAP = null;

	public final static String GB8561 = "GB8561";

	public static HashMap GB8561_MAP = null;

	public final static String GB4658 = "GB4658";

	public static HashMap GB4658_MAP = null;

	public static final String GB6864 = "GB6864";

	public static HashMap GB6864_MAP = null;

	public final static String GB = "GB";

	public static HashMap GB_MAP = null;

	public final static String GB10301 = "GB10301";

	public static HashMap GB10301_MAP = null;

	public final static String ZB42 = "ZB42";

	public static HashMap ZB42_MAP = null;

	public final static String ZB28 = "ZB28";

	public static HashMap ZB28_MAP = null;

	public final static String ZB29 = "ZB29";

	public static HashMap ZB29_MAP = null;

	public final static String ZB27 = "ZB27";

	public static HashMap ZB27_MAP = null;

	public final static String ZB31 = "ZB31";

	public static HashMap ZB31_MAP = null;

	public final static String ZB30 = "ZB30";

	public static HashMap ZB30_MAP = null;

	public final static String ZB19 = "ZB19";

	public static HashMap ZB19_MAP = null;

	public final static String ZB17 = "ZB17";

	public static HashMap ZB17_MAP = null;

	public final static String ZB18 = "ZB18";

	public static HashMap ZB18_MAP = null;

	public final static String ZB09 = "ZB09";

	public static HashMap ZB09_MAP = null;

	public final static String ZB33 = "ZB33";

	public static HashMap ZB33_MAP = null;

	public static final String ZB910 = "ZB910";

	public static HashMap ZB910_MAP = null;

	public static final String BJ77 = "BJ77";

	public static HashMap BJ77_MAP = null;

	public static final String ZNODETREE = "ZNODETREE";

	public static HashMap ZNODETREE_MAP = null;

	public final static String GB4766 = "GB4766";

	public static HashMap GB4766_MAP = null;

	public final static String GB4767 = "GB4767";

	public static HashMap GB4767_MAP = null;

	public final static String GB4762 = "GB4762";

	public static HashMap GB4762_MAP = null;

	public final static String ZB06 = "ZB06";

	public static HashMap ZB06_MAP = null;

	public final static String ZB24 = "ZB24";

	public static HashMap ZB24_MAP = null;

	public final static String ZB10 = "ZB10";

	public static HashMap ZB10_MAP = null;

	public final static String BJ011 = "BJ011";

	public static HashMap BJ011_MAP = null;

	public final static String BJ012 = "BJ012";

	public static HashMap BJ012_MAP = null;

	public final static String ZB03 = "ZB03";

	public static HashMap ZB03_MAP = null;

	public final static String ZB32 = "ZB32";

	public static HashMap ZB32_MAP = null;

	public final static String ZB41 = "ZB41";

	public static HashMap ZB41_MAP = null;

	public final static String GBT4754 = "GBT4754";

	public static HashMap GBT4754_MAP = null;

	public final static String BJ008 = "BJ008";

	public static HashMap BJ008_MAP = null;

	public final static String ZB11 = "ZB11";

	public static HashMap ZB11_MAP = null;

	public final static String ZB12 = "ZB12";

	public static HashMap ZB12_MAP = null;

	public final static String ZB13 = "ZB13";

	public static HashMap ZB13_MAP = null;

	public final static String ZB15 = "ZB15";

	public static HashMap ZB15_MAP = null;

	public final static String ZB16 = "ZB16";

	public static HashMap ZB16_MAP = null;

	public final static String BJ001 = "BJ001";

	public static HashMap BJ001_MAP = null;

	public final static String BJ90 = "BJ90";

	public static HashMap BJ90_MAP = null;

	public final static String ZB14 = "ZB14";

	public static HashMap ZB14_MAP = null;

	public final static String ZB04 = "ZB04";

	public static HashMap ZB04_MAP = null;

	public final static String ZB26 = "ZB26";

	public static HashMap ZB26_MAP = null;

	public final static String ZB56 = "ZB56";

	public static HashMap ZB56_MAP = null;

	public final static String ZB52 = "ZB52";

	public static HashMap ZB52_MAP = null;

	public final static String ZB53 = "ZB53";

	public static HashMap ZB53_MAP = null;

	public final static String ZB49 = "ZB49";

	public static HashMap ZB49_MAP = null;

	public final static String GB4761 = "GB4761";

	public static HashMap GB4761_MAP = null;

	public final static String ZB904 = "ZB904";

	public static HashMap ZB904_MAP = null;

	public final static String ZB47 = "ZB47";

	public static HashMap ZB47_MAP = null;

	/*
	 * The session scope attribute that holds the lists
	 */
	public static final String DUTYEXPERIENCE_LIST = "dutyExperienceList";

	public static final String CGJXX_LIST = "cgjxxList";

	public static final String DEGREEINFO_LIST = "degreeinfoList";

	public static final String DUTYINFO_LIST = "dutyinfoList";

	public static final String DUTYLEVEL_LIST = "dutylevelList";

	public static final String EDUCATION_LIST = "educationList";

	public static final String JCXX_LIST = "jcxxList";

	public static final String KHKCXX_LIST = "khkcxxList";

	public static final String TRAINING_LIST = "trainingList";

	public static final String ZCXX_LIST = "zcxxList";

	public static final String GZXX_LIST = "gzxxList";

	public static final String LLXX_LIST = "llxxList";

	public static final String JTCYJZYSHGX_LIST = "jtcyjzyshgxList";

	public static final String BCXX_LIST = "bcxxList";

	public static final String ZZTXXX_LIST = "zztxxxList";

	/*
	 * managers
	 */
	public static final String USER_MANAGER = "userManager";

	public static final String DUTYEXPERIENCE_MANAGER = "dutyExperienceManager";

	public static final String BASICINFO_MANAGER = "basicInfoManager";

	public static final String CGJXX_MANAGER = "cgjxxManager";

	public static final String DEGREEINFO_MANAGER = "degreeinfoManager";

	public static final String DUTYINFO_MANAGER = "dutyinfoManager";

	public static final String DUTYLEVEL_MANAGER = "dutylevelManager";

	public static final String EDUCATION_MANAGER = "educationManager";

	public static final String JCXX_MANAGER = "jcxxManager";

	public static final String KHKCXX_MANAGER = "khkcxxManager";

	public static final String TRAINING_MANAGER = "trainingManager";

	public static final String ZCXX_MANAGER = "zcxxManager";

	public static final String GZXX_MANAGER = "gzxxManager";

	public static final String LLXX_MANAGER = "llxxManager";

	public static final String JTCYJZYSHGX_MANAGER = "jtcyjzyshgxManager";

	public static final String BJ77_MANAGER = "bj77Manager";

	public static final String ZB910_MANAGER = "zb910Manager";

	public static final String ZNODETREE_MANAGER = "znodeTreeManager";

	public static final String ZZTXXX_MANAGER = "zztxxxManager";

	public static final String BCXX_MANAGER = "bcxxManager";

	public static final String SSO_PASSWORD = "www.bipt.edu.cn.netcenter.zzb.password.81292191";

	public static final String LDAP_GROUP = "cn=ganbu,ou=groups,dc=bipt,dc=edu,dc=cn";
	
	public static final String LDAP_GROUP_MEMBER_ATTRIBUTE1 = "memberOf";

	public static final String LDAP_GROUP_MEMBER_ATTRIBUTE2 = "iplanet-am-static-group-dn";

}
